(function () {
    require.config({
        baseUrl: "./",
        urlArgs:'_t='+(new Date()).getTime(),//清楚缓存
        map: {
            "*": {
                "css": "//cdn.bootcss.com/require-css/0.1.10/css.min.js"
            }
        },
        waitSeconds: 5,
        paths: {
            jquery:"lib/jquery-3.3.1.min",
            text: '//cdn.bootcss.com/require-text/2.0.12/text.min',
            main: "js/main",
            vue:"//cdn.bootcss.com/vue/2.5.16/vue.min",
            vueRouter:"//cdn.bootcss.com/vue-router/3.0.1/vue-router.min",
            bootstrap:"//cdn.bootcss.com/bootstrap/4.1.1/js/bootstrap.bundle.min",

            // marked          : "lib/editor.md/editormd.min",
            // prettify        : "lib/editor.md/lib/prettify.min",
            // raphael         : "lib/editor.md/lib/raphael.min",
            // underscore      : "lib/editor.md/lib/underscore.min",
            // flowchart       : "lib/editor.md/lib/flowchart.min",
            // jqueryflowchart : "lib/editor.md/lib/jquery.flowchart.min",
            // sequenceDiagram : "lib/editor.md/lib/sequence-diagram.min",
            // katex           : "//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.1/katex.min",
            editormd        : "lib/editor.md/editormd.min" // Using Editor.md amd version for Require.js
        },
        shim:{
            vueRouter: {
                deps: ["vue"],
            },
            main: {
                deps: ["vue", "vueRouter", "jquery", "bootstrap"]
            },
            index: {
                deps: ["vue", "VueRouter"],
            },
            bootstrap:{
                deps: ["jquery"]
            },
            editormd:{
                deps: [
                    "jquery",
                    "editormd",
                    // "lib/editor.md/languages/en",
                    // "lib/editor.md/plugins/link-dialog/link-dialog",
                    // "lib/editor.md/plugins/reference-link-dialog/reference-link-dialog",
                    // "lib/editor.md/plugins/image-dialog/image-dialog",
                    // "lib/editor.md/plugins/code-block-dialog/code-block-dialog",
                    // "lib/editor.md/plugins/table-dialog/table-dialog",
                    // "lib/editor.md/plugins/emoji-dialog/emoji-dialog",
                    // "lib/editor.md/plugins/goto-line-dialog/goto-line-dialog",
                    // "lib/editor.md/plugins/help-dialog/help-dialog",
                    // "lib/editor.md/plugins/html-entities-dialog/html-entities-dialog",
                    // "lib/editor.md/plugins/preformatted-text-dialog/preformatted-text-dialog"
                ]
            }
        }
    });
    require(["main"])
})();